package com.yykj.prescription.server.model.repository.prescription;

import com.yykj.prescription.server.model.entity.prescription.DoctorPrescriptionStatistic;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.time.LocalDate;
import java.util.List;

@Repository
public interface DoctorPrescriptionStatisticRepository extends JpaRepository<DoctorPrescriptionStatistic,Integer> {
    List<DoctorPrescriptionStatistic> findAllByHospitalId(Integer hospitalId);

    DoctorPrescriptionStatistic findByHospitalIdAndDoctorIdAndDay(Integer hospitalId, String doctorId, LocalDate day);

}
